x86/alternatives: fully leverage automatic NOP filling
authorJan Beulich <jbeulich@suse.com>
Wed, 29 Aug 2018 14:30:54 +0000 (16:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 29 Aug 2018 14:30:54 +0000 (16:30 +0200)
commitd6fcc5869790b9e07dc2587e50045a83a67f86fa
treebdb5975259368c1709becce814a1be02408074dc
parent56e619b4d34475abfa31b59dc138328c097ea571
x86/alternatives: fully leverage automatic NOP filling

As of commit 4008c71d7a ("x86/alt: Support for automatic padding
calculations") there's no point having explict ASM_NOPn instances in
alternatives anymore - drop them. As a result also drop the asm/nops.h
inclusion from alternative.h, adding explicit inclusions in the two
remaining C files needing them.

While touching it also move the CR4_PV32_RESTORE definition out of the
SMAP-specific conditional into a more general one.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/alternative.c
xen/arch/x86/flushtlb.c
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/spec_ctrl.h